package rmi;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/11/19 9:10
 */

public class RmiClient {
    public static void main(String[] args) throws RemoteException,
            NotBoundException, MalformedURLException {
        RmiService rmiService = (RmiService) Naming.lookup("rmi://192.168.0.27:9099/RmiService");
        System.out.println(rmiService.hello("123"));
    }
}
